home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 859 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: inferno.mpx.com.au!jolt!nring
  2. From: nring@jolt.mpx.com.au (Nick Ring)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: printf in Arexx
  5. Date: 10 Jan 1996 21:40:25 GMT
  6. Organization: Microplex Pty Ltd
  7. Message-ID: <4d1bo9$rh6@inferno.mpx.com.au>
  8. References: <883.6577T1333T1011@mbox3.swipnet.se>
  9. NNTP-Posting-Host: jolt.mpx.com.au
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Roland Bengtsson (roland.bengtsson@mbox3.swipnet.se) wrote:
  13. : I wanted to make som ASCII-tables in Arexx, but I can't find any
  14. : function similar to printf()  C. Any advice?
  15.  
  16. : It maybe look like this:
  17.  
  18. :  1 One             540      230       0.08
  19. :  2 Two           -1942     2621
  20. :  3 Three            80      210       0.00
  21. :  4 Four          13522     1522       0.06
  22.  
  23. To my knowledge, there is function in ARexx to do this. The only way for 
  24. you to get this result, is to do it yourself. To make it worse, ARexx is 
  25. dataless, which means that %f (float in C?) doesn't mean as they are all 
  26. treated as strings of bytes (%s would most likely be the closest in C).
  27.  
  28. hope this helps.
  29.  
  30. nick
  31.  
  32.